/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.aacorps.javaeal.repository.code;

import edu.aacorps.javaeal.common.CodeDTO;
import edu.aacorps.javaeal.domain.Code;
import edu.aacorps.javaeal.repository.BaseRepository;
import javax.ejb.Local;

/**
 *
 * @author Ati
 */
@Local
public interface CodeRepository extends BaseRepository<Code, Long> {

    Code find(String code);
    
    Code toCodeEntity(CodeDTO codeDTO);

    CodeDTO toCodeDTO(Code code);

}
